package d13_tz.d3_transfer_thread;

public class ThreadDemo {
    public static void main(String[] args) {
        //目标: 掌握出让线程的方法
        /*
        public static void yield() 出让线程/礼让线程
         */

        MyThread myThread = new MyThread();
        MyThread myThread1 = new MyThread();
        myThread1.setName("陈");
        myThread.setName("里");
        myThread1.start();
        myThread.start();
    }
}
